<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%request.setCharacterEncoding("utf-8");%>
<%@include file="/include/pageexpires.jsp"%>
<%@include file="/include/filepath.jsp"%>
<%

String username = request.getParameter("username");
String password  = request.getParameter("password");
System.out.println(password+username);
if(username != null && !username.equals("") && password !=null && !password.equals("")){
  out.println("<script language='javascript'>location.href='"+request.getContextPath()+"/orgmodel/user.do?method=login&username="+username+"&password="+password+"'</script>");
}else{
  out.println("<script language='javascript'>" );
  out.println("window.top.opener  =  null; window.top.close();" );
  out.println(" window.open(\""+request.getContextPath()+"/chat/login/index.jsp\",\"messIndex\", \"status=yes,resizable=yes,scrollbars=yes,toolbar=yes,WIDTH=760,HEIGHT=760\")" );
  out.println("</script>");
}
%>
